#!/usr/bin python3
# -*- coding:UTF-8 -*-
# Author: nigo
class People:
    def __init__(self):
        self.head = 1
        self.hands = 2
        self.legs = 2
        self.mouth = 1

    def work(self):
        self.think()
        print('do something with %s hands' % self.hands)

    def think(self):
        print('use my brain think')

    def eat(self,food):
        print('I have %s mouth' % self.mouth)
        print('I eat %s' % food)

class Man(People):
    def play(self):
        print('play games')

    def work(self):
        super().work()
        print('work for wife')


if __name__ == "__main__":
    # person = People()
    # print(person.legs)
    # person.think()
    # person.eat('apple')
    man = Man()
    man.work()
